<?php
namespace app\api\controller;

use app\api\model\MasterModel;
use think\Controller;
class Master extends Controller
{
    function masterlist() {
        $model = new MasterModel();
        $result = $model->masterlist();
        return json_encode($result);
    }
    function masterdetail() {
        $masterid = input('get.masterid');
        $model = new MasterModel();
        $result = $model->masterdetail($masterid);
        return json_encode($result);
    }
}